package tool

import (
	"MoSkeleton/framework/core/models"
)

type GenBiz struct {
	models.MoModel
	ClassifyId          uint64 `gorm:"column:classify_id;type:BIGINT;"`
	DatasourceId        uint64 `gorm:"column:datasource_id;type:BIGINT;"`
	Title               string `gorm:"column:title;type:VARCHAR(100);"`
	FunctionAuthor      string `gorm:"column:function_author;type:VARCHAR(50);"`
	IsIgnoreTablePrefix string `gorm:"column:is_ignore_table_prefix;type:CHAR(1);"`
	TableSuffix         string `gorm:"column:table_suffix;type:VARCHAR(32);"`
	ListOrder           int32  `gorm:"column:list_order;type:INT;NOT NULL"`
	Status              string `gorm:"column:status;type:CHAR(1);NOT NULL"`
	Remark              string `gorm:"column:remark;type:VARCHAR(500);"`
	CreatedBy           string `gorm:"column:created_by;type:VARCHAR(32);"`
	UpdatedBy           string `gorm:"column:updated_by;type:VARCHAR(32);"`
}

func (b *GenBiz) TableName() string {
	return "gen_biz"
}
